﻿using System;
using System.Data;
using System.Data.Common;
using System.Threading;
using System.Threading.Tasks;


namespace Dal.IServices
{
    /// <summary>
    /// 定义数据上下文接口
    /// </summary>
    public interface IDbFactory
    {
        DbConnection Create(DatBaseType dbType = DatBaseType.MsSql);

        IDbConnection GetDb<T>(); 
    }

    public enum DatBaseType
    {
        MsSql,
        MySql
    }
}
